import React from 'react';
import {View, FlatList, Text, StyleSheet} from "react-native";
import DiscussionCell from "../components/discussion/Cell";

class Discussion extends React.PureComponent {
    render() {
        return (
            <FlatList
                keyExtractor={this._keyExtractor}
                renderItem={this.renderItem}/>
        )
    }

    _keyExtractor = (item, index) => item.id;
    renderItem    = ({item, index}) => {
        return <DiscussionCell data={item}/>
    }
}

export default Discussion